﻿using AutoMapper;
using Traceability.App.Api.Application.Command.Add;
using Traceability.App.Api.DTO;
using Traceability.App.Domain;

namespace Traceability.App.Api
{
    public class MyMapper:Profile
    {
        public MyMapper() 
        {
            CreateMap<ProductDTO, ProductModel>().ReverseMap();
            CreateMap<TraceabilityModel, AddTraceabilityCommand>().ReverseMap();
            CreateMap<TraceabilityModel, UpdateTraceabilityCommand>().ReverseMap();
            CreateMap<TraceabilityModel, DelTraceabilityCommand>().ReverseMap();
            CreateMap<Aquaculture,AddAquacultureCommand>().ReverseMap();
            CreateMap<Aquaculture, AquacultureDTO>().ReverseMap();
            CreateMap<AddBaoCommand,HealthreportModel>().ReverseMap();
            CreateMap<UpdateBaoCommand, HealthreportModel>().ReverseMap();
            CreateMap<DelBaoCommand,HealthreportModel>().ReverseMap();
            CreateMap<BaoDTO, HealthreportModel>().ReverseMap();
            CreateMap<AquaculturefarmCompanyModel,UpdateYangCompanyCommand>().ReverseMap(); 
            CreateMap<SlaughterModel,AddSlaughterCommand>().ReverseMap();   
            CreateMap<SlaughterModel,TuZaiDTO>().ReverseMap();
            CreateMap<SlaughterCompany,AddTuCompanyCommand>().ReverseMap();
            CreateMap<DeepProcessing,AddDeepCommand>().ReverseMap();    
        }
    }
}
